package cn.pinming.suite;

import cn.pinming.pmsuite.api.ApiResult;
import cn.pinming.pmsuite.app.SysApp;
import cn.pinming.pmsuite.app.SysAppService;
import cn.pinming.pmsuite.app.SysDevelopConfig;
import cn.pinming.pmsuite.common.search.PagedSearchRequest;
import cn.pinming.pmsuite.exception.ServiceException;
import cn.pinming.pmsuite.persistence.PagedList;
import cn.pinming.pmsuite.web.security.UserAccount;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Service
public class MockSysAppService implements SysAppService {
    @Override
    public SysApp getByAppCode(String appCode) {
        return null;
    }

    @Override
    public String getAppIdByCode(String ssoAppCode) throws ServiceException {
        return "";
    }

    @Override
    public List<SysApp> getList(SysApp filter, UserAccount userAccount) {
        return Collections.emptyList();
    }

    @Override
    public List<SysApp> getListByType(int appType) {
        return Collections.emptyList();
    }

    @Override
    public List<String> getInternalRole(String appId) {
        return Collections.emptyList();
    }

    @Override
    public List<SysApp> getHasPermsByUserId(String userId, boolean supperAdmin) {
        return Collections.emptyList();
    }

    @Override
    public List<SysApp> getList(UserAccount account, String appid) {
        return Collections.emptyList();
    }

    @Override
    public int getCount(UserAccount account) {
        return 0;
    }

    @Override
    public void initApp(String userAccount) {

    }

    @Override
    public SysDevelopConfig getDevelopConfigByAppId(String appId) {
        SysDevelopConfig config=new SysDevelopConfig();
        config.setAppId(appId);
        config.setSecretKey("0497c88401c94c75911b5045d7355a7a");
        return config;
    }

    @Override
    public ApiResult updateRole(String appId, List<String> roleIdList) {
        return null;
    }

    @Override
    public ApiResult deleteRole(String appId, String roleId) {
        return null;
    }

    @Override
    public List<SysApp> getList(List<String> appIdList) {
        return Collections.emptyList();
    }

    @Override
    public ApiResult batchSaveOrUpdate(List<SysApp> sysAppList) {
        return null;
    }

    @Override
    public SysApp getByKey(Object key) {
        return null;
    }

    @Override
    public ApiResult<SysApp> deleteByKey(Object key) {
        return null;
    }

    @Override
    public ApiResult<SysApp> update(SysApp entity) {
        return null;
    }

    @Override
    public ApiResult<SysApp> create(SysApp entity) {
        return null;
    }

    @Override
    public PagedList<SysApp> getPaged(PagedSearchRequest<SysApp> request) {
        return null;
    }
}
